import request from "@/utils/request";
import { PRODUCE } from "@/config/baseUrl";

// 设备列表查询
export function getEquipList(data) {
  return request({
    url: PRODUCE + "/data/equipment/list",
    method: "post",
    data,
  });
}

// 设备详情
export function getEquipDetail(id) {
  return request({
    url: PRODUCE + "/data/equipment/detail",
    method: "get",
    params: {
      id,
    },
  });
}

// 设备详情
export function getEquipDetailByEquipIds(equipIds) {
  return request({
    url: PRODUCE + "/data/equipment/listEquipmentByIds",
    method: "get",
    params: {
      equipIds: equipIds,
    },
  });
}

// 保存设备信息
export function saveEquipDetail(data) {
  return request({
    url: PRODUCE + "/data/equipment/addOrUpdate",
    method: "post",
    data,
  });
}
